package com.slife.snap.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.slife.snap.config.JsonbTypeHandler;

import java.util.Date;
import java.util.List;

/**
 * 
 * @TableName tb_order
 */
@TableName(value ="tb_order",autoResultMap = true)
public class TbOrder extends BaseEntity {
    /**
     * 主键id
     */
    @TableId
    private String id;

    /**
     * 第一次称重值
     */
    private Double firstWeight;

    /**
     * 第二次称重值
     */
    private Double secondWeight;

    /**
     * 净重值
     */
    private Double suttleWeight;

    /**
     * 第一次称重时间
     */
    private Date firstTime;

    /**
     * 第二次称重时间
     */
    private Date secontTime;

    /**
     * 第一次抓拍图片
     */
    @TableField(typeHandler= JsonbTypeHandler.class)
    private List<ImgEntity> firstImgs;

    /**
     * 第二次抓拍图片
     */
    @TableField(typeHandler= JsonbTypeHandler.class)
    private List<ImgEntity> secondImgs;

    /**
     * 运输垃圾类型
     */
    private String pType;

    /**
     * 车辆类型
     */
    private String stype;

    /**
     * 是否推送
     */
    private Boolean pushFlag;

    /**
     * 来源
     */
    private String source;

    /**
     * 车辆所属公司
     */
    private String commpanyName;

    /**
     * 垃圾去向
     */
    private String goWhere;

    /**
     * 备注
     */

    /**
     * 是否推送成生
     */
    private Boolean slifeFlag;




    /**
     * 车牌号码
     */
    private String plateNumber;

    /**
     * 状态
     */
    private String status;

    /**
     * 车辆类型
     */
    private String carType;

    /**
     * 第一次垃圾类型
     */
    private String firstType;

    /**
     * 第二次垃圾类型
     */
    private String secondType;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    public String getId() {
        return id;
    }

    /**
     * 主键id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 第一次称重值
     */
    public Double getFirstWeight() {
        return firstWeight;
    }

    /**
     * 第一次称重值
     */
    public void setFirstWeight(Double firstWeight) {
        this.firstWeight = firstWeight;
    }

    /**
     * 第二次称重值
     */
    public Double getSecondWeight() {
        return secondWeight;
    }

    /**
     * 第二次称重值
     */
    public void setSecondWeight(Double secondWeight) {
        this.secondWeight = secondWeight;
    }

    /**
     * 净重值
     */
    public Double getSuttleWeight() {
        return suttleWeight;
    }

    /**
     * 净重值
     */
    public void setSuttleWeight(Double suttleWeight) {
        this.suttleWeight = suttleWeight;
    }

    /**
     * 第一次称重时间
     */
    public Date getFirstTime() {
        return firstTime;
    }

    /**
     * 第一次称重时间
     */
    public void setFirstTime(Date firstTime) {
        this.firstTime = firstTime;
    }

    /**
     * 第二次称重时间
     */
    public Date getSecontTime() {
        return secontTime;
    }

    /**
     * 第二次称重时间
     */
    public void setSecontTime(Date secontTime) {
        this.secontTime = secontTime;
    }

    /**
     * 第一次抓拍图片
     */
    public List<ImgEntity> getFirstImgs() {
        return firstImgs;
    }

    /**
     * 第一次抓拍图片
     */
    public void setFirstImgs(List<ImgEntity> firstImgs) {
        this.firstImgs = firstImgs;
    }

    /**
     * 第二次抓拍图片
     */
    public List<ImgEntity> getSecondImgs() {
        return secondImgs;
    }

    /**
     * 第二次抓拍图片
     */
    public void setSecondImgs(List<ImgEntity> secondImgs) {
        this.secondImgs = secondImgs;
    }

    /**
     * 运输垃圾类型
     */
    public String getpType() {
        return pType;
    }

    /**
     * 运输垃圾类型
     */
    public void setpType(String pType) {
        this.pType = pType;
    }

    /**
     * 车辆类型
     */
    public String getStype() {
        return stype;
    }

    /**
     * 车辆类型
     */
    public void setStype(String stype) {
        this.stype = stype;
    }

    /**
     * 是否推送
     */
    public Boolean getPushFlag() {
        return pushFlag;
    }

    /**
     * 是否推送
     */
    public void setPushFlag(Boolean pushFlag) {
        this.pushFlag = pushFlag;
    }

    /**
     * 来源
     */
    public String getSource() {
        return source;
    }

    /**
     * 来源
     */
    public void setSource(String source) {
        this.source = source;
    }

    /**
     * 车辆所属公司
     */
    public String getCommpanyName() {
        return commpanyName;
    }

    /**
     * 车辆所属公司
     */
    public void setCommpanyName(String commpanyName) {
        this.commpanyName = commpanyName;
    }

    /**
     * 垃圾去向
     */
    public String getGoWhere() {
        return goWhere;
    }

    /**
     * 垃圾去向
     */
    public void setGoWhere(String goWhere) {
        this.goWhere = goWhere;
    }



    /**
     * 是否推送成生
     */
    public Boolean getSlifeFlag() {
        return slifeFlag;
    }

    /**
     * 是否推送成生
     */
    public void setSlifeFlag(Boolean slifeFlag) {
        this.slifeFlag = slifeFlag;
    }



    /**
     * 车牌号码
     */
    public String getPlateNumber() {
        return plateNumber;
    }

    /**
     * 车牌号码
     */
    public void setPlateNumber(String plateNumber) {
        this.plateNumber = plateNumber;
    }

    /**
     * 状态
     */
    public String getStatus() {
        return status;
    }

    /**
     * 状态
     */
    public void setStatus(String status) {
        this.status = status;
    }

    /**
     * 车辆类型
     */
    public String getCarType() {
        return carType;
    }

    /**
     * 车辆类型
     */
    public void setCarType(String carType) {
        this.carType = carType;
    }

    /**
     * 第一次垃圾类型
     */
    public String getFirstType() {
        return firstType;
    }

    /**
     * 第一次垃圾类型
     */
    public void setFirstType(String firstType) {
        this.firstType = firstType;
    }

    /**
     * 第二次垃圾类型
     */
    public String getSecondType() {
        return secondType;
    }

    /**
     * 第二次垃圾类型
     */
    public void setSecondType(String secondType) {
        this.secondType = secondType;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TbOrder other = (TbOrder) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getFirstWeight() == null ? other.getFirstWeight() == null : this.getFirstWeight().equals(other.getFirstWeight()))
            && (this.getSecondWeight() == null ? other.getSecondWeight() == null : this.getSecondWeight().equals(other.getSecondWeight()))
            && (this.getSuttleWeight() == null ? other.getSuttleWeight() == null : this.getSuttleWeight().equals(other.getSuttleWeight()))
            && (this.getFirstTime() == null ? other.getFirstTime() == null : this.getFirstTime().equals(other.getFirstTime()))
            && (this.getSecontTime() == null ? other.getSecontTime() == null : this.getSecontTime().equals(other.getSecontTime()))
            && (this.getFirstImgs() == null ? other.getFirstImgs() == null : this.getFirstImgs().equals(other.getFirstImgs()))
            && (this.getSecondImgs() == null ? other.getSecondImgs() == null : this.getSecondImgs().equals(other.getSecondImgs()))
            && (this.getpType() == null ? other.getpType() == null : this.getpType().equals(other.getpType()))
            && (this.getStype() == null ? other.getStype() == null : this.getStype().equals(other.getStype()))
            && (this.getPushFlag() == null ? other.getPushFlag() == null : this.getPushFlag().equals(other.getPushFlag()))
            && (this.getSource() == null ? other.getSource() == null : this.getSource().equals(other.getSource()))
            && (this.getCommpanyName() == null ? other.getCommpanyName() == null : this.getCommpanyName().equals(other.getCommpanyName()))
            && (this.getGoWhere() == null ? other.getGoWhere() == null : this.getGoWhere().equals(other.getGoWhere()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getSlifeFlag() == null ? other.getSlifeFlag() == null : this.getSlifeFlag().equals(other.getSlifeFlag()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getPlateNumber() == null ? other.getPlateNumber() == null : this.getPlateNumber().equals(other.getPlateNumber()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getCarType() == null ? other.getCarType() == null : this.getCarType().equals(other.getCarType()))
            && (this.getFirstType() == null ? other.getFirstType() == null : this.getFirstType().equals(other.getFirstType()))
            && (this.getSecondType() == null ? other.getSecondType() == null : this.getSecondType().equals(other.getSecondType()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getFirstWeight() == null) ? 0 : getFirstWeight().hashCode());
        result = prime * result + ((getSecondWeight() == null) ? 0 : getSecondWeight().hashCode());
        result = prime * result + ((getSuttleWeight() == null) ? 0 : getSuttleWeight().hashCode());
        result = prime * result + ((getFirstTime() == null) ? 0 : getFirstTime().hashCode());
        result = prime * result + ((getSecontTime() == null) ? 0 : getSecontTime().hashCode());
        result = prime * result + ((getFirstImgs() == null) ? 0 : getFirstImgs().hashCode());
        result = prime * result + ((getSecondImgs() == null) ? 0 : getSecondImgs().hashCode());
        result = prime * result + ((getpType() == null) ? 0 : getpType().hashCode());
        result = prime * result + ((getStype() == null) ? 0 : getStype().hashCode());
        result = prime * result + ((getPushFlag() == null) ? 0 : getPushFlag().hashCode());
        result = prime * result + ((getSource() == null) ? 0 : getSource().hashCode());
        result = prime * result + ((getCommpanyName() == null) ? 0 : getCommpanyName().hashCode());
        result = prime * result + ((getGoWhere() == null) ? 0 : getGoWhere().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getSlifeFlag() == null) ? 0 : getSlifeFlag().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getPlateNumber() == null) ? 0 : getPlateNumber().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getCarType() == null) ? 0 : getCarType().hashCode());
        result = prime * result + ((getFirstType() == null) ? 0 : getFirstType().hashCode());
        result = prime * result + ((getSecondType() == null) ? 0 : getSecondType().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", firstWeight=").append(firstWeight);
        sb.append(", secondWeight=").append(secondWeight);
        sb.append(", suttleWeight=").append(suttleWeight);
        sb.append(", firstTime=").append(firstTime);
        sb.append(", secontTime=").append(secontTime);
        sb.append(", firstImgs=").append(firstImgs);
        sb.append(", secondImgs=").append(secondImgs);
        sb.append(", pType=").append(pType);
        sb.append(", stype=").append(stype);
        sb.append(", pushFlag=").append(pushFlag);
        sb.append(", source=").append(source);
        sb.append(", commpanyName=").append(commpanyName);
        sb.append(", goWhere=").append(goWhere);
        sb.append(", slifeFlag=").append(slifeFlag);
        sb.append(", plateNumber=").append(plateNumber);
        sb.append(", status=").append(status);
        sb.append(", carType=").append(carType);
        sb.append(", firstType=").append(firstType);
        sb.append(", secondType=").append(secondType);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}